package be.nepherte.movmanager.client.gui;

import be.nepherte.movmanager.client.gui.components.Tab;
import com.google.gwt.user.client.ui.Label;

/**
 * This class represents the Info tab of MovManager. This page gives some information about MovManager
 * and about how to use it.
 * <p>
 * This file is part of MovManager.
 * </p>
 * <p>
 * MovManager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * </p>
 * <p>
 * MovManager is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * </p>
 * <p>
 * You should have received a copy of the GNU General Public License
 * along with MovManager.  If not, see http://www.gnu.org/licenses/.
 * </p>
 * 
 * @author	Bart Verhoeven
 * @version	0.1
 * @since	21/05/2009
 */
public class InfoTab extends Tab {
	/**
	 * Create, initialize and return InfoTab.
	 */
	public static TabInfo init() {
		return new TabInfo(MovManager.messages.infoTabName(), MovManager.messages.infoDescription(), "#2a8ebf") {
			
			/**
			 * Return an instance of InfoTab.
			 * 
			 * @return	a new InfoTab
			 */
			public Tab createInstance() {
				return new InfoTab();
			}
		};
	}

	/**
	 * Constructor for InfoTab. To create an object of this class, use init().
	 */
	private InfoTab() {
		super();
		
		initWidget(new Label());
	}

	/**
	 * Specify what happens upon showing this page: nothing.
	 */
	@Override public void onShow() {}

	/**
	 * Specify what happens upon showing this page: nothing.
	 */
	@Override public void onHide() {}
}